Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Texture Flags Masks

The flags parameter for the QATextureNew function specifies a texture mode, which determines certain features of the new texture map. You can use these masks to set the flags parameter.

#define kQATexture_None                             0
#define kQATexture_Lock                             (1 << 0)
#define kQATexture_Mipmap                           (1 << 1)
#define kQATexture_NoCompression                    (1 << 2)
#define kQATexture_HighCompression                  (1 << 3)

Constant descriptions

kQATexture_None
Pass this value for no texture features.
kQATexture_Lock
The new texture map should remain locked in memory and not be swapped out. You should set this flag for texture maps that are heavily used during rendering. Note, however, that this flag is usually ignored by software-based drawing engines.
kQATexture_Mipmap
The new texture map is mipmapped.
kQATexture_NoCompression
The new texture map should not be compressed.
kQATexture_HighCompression
The new texture map should be compressed (even if doing so takes a considerable amount of time).

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |